FROM python:3.12
WORKDIR /app

COPY . /app/appCustomers

COPY docker_entrypoint.sh /app/docker_entrypoint.sh
RUN ls
RUN chmod +x /app/appCustomers/docker_entrypoint.sh
RUN chmod +x /app/appCustomers/.env

RUN pip install --no-cache-dir -r /app/appCustomers/requirements.txt

LABEL authors="Igor Kotov"
#EXPOSE 8080
#ENTRYPOINT ["/app/appCustomers/docker_entrypoint.sh"]
CMD ["uvicorn", "appCustomers.main:app", "--host", "0.0.0.0", "--port", "8000"]